package com.example.market2023.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

public class PagesController {
    @Controller
    public class WelcomeController {

        @GetMapping("/welcome")
        public String getWelcomePage() {
            return "pages/welcome"; // 返回视图名，视图解析器将解析为具体的HTML页面
        }
    }
}
